package com.chen.cart;

import com.chen.service.annotation.EnableUserWebConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @author cgj
 * @date 4/22/25 7:10 PM
 */
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
// 父工程引入了数据库的驱动, 但是配置文件中没有写数据源(datasource) 会报错If you want an embedded database (H2, HSQL or Derby)
//       所以这里要排除依赖 ,

@EnableUserWebConfig  //需要用到用户数据
@EnableFeignClients(basePackages = "com.chen.feign.product") // 让spring可以扫到
public class CartApplication {
    public static void main(String[] args) {
        SpringApplication.run(CartApplication.class);
    }
}
